﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Biljart.Model.Dao;

namespace Biljart.Model.Service
{
    class TypeService: ITypeService
    {
        private readonly ITypeDao _typeDao;

        public TypeService()
        {
            _typeDao = new TypeDao();
        }

        public Type GetType(long id)
        {
            return _typeDao.GetType(id);
        }

        public IEnumerable<Type> GetTypes()
        {
            return _typeDao.GetTypes();
        }

        public IEnumerable<Type> GetTypes(HashSet<long> ids)
        {
            return _typeDao.GetTypes(ids);
        }

        public bool AddType(Type type)
        {
            return _typeDao.AddType(type);
        }
    }
}
